package com.spancer.contentcenter.configuration;

import com.spancer.ribbonconfigure.RibbonConfiguration;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;

/**
 * author by: mars
 * Date: 2020/8/15 13:59
 * Description: 为访问用户中心创建的Ribbon配置
 * @RibbonClient(name = "user-center",configuration = ):
 * name : 定义ribbon 负载均衡的服务名称
 * configuration：定义负载均衡的规则类
 * 方式：
 * 1.指定访问某个服务的负载均衡规则 ：@RibbonClient
 * 2.全局：@RibbonClients(defaultConfiguration=XXX.class)
 */
@Configuration
@RibbonClients(defaultConfiguration = RibbonConfiguration.class)
public class UserCenterRibbonConfiguration {
}
